package com.xuwei.base.reflect;

import java.util.Date;

public class Person {
	public String name="Bob";
	private int age = 30;
	public static Date time;
	
	public int getAge() {
		return age;
	}
	public Person(){
		System.out.println("默认构造方法执行了");
	}
	public Person(String name){
		System.out.println("姓名："+name);
	}
	public Person(String name,int age){
		System.out.println(name+"="+age);
	}
	private Person(int age){
		System.out.println("年龄："+age);
	}
	
	public void m1(){
		System.out.println("m1");
	}
	public void m2(String name){
		System.out.println(name);
	}
	public String m3(String name,int age){
		System.out.println(name+":"+age);
		return "itcast";
	}
	private void m4(Date d){
		System.out.println(d);
	}
	public static void m5(){
		System.out.println("m5");
	}
	private static void m6(String[] strs){
		System.out.println(strs.length);
	}
	public static void main(String[] args) {
		System.out.println("main");
	}
}
